package com.user;

/**
 * @author yulian174
 * @version 1.0
 */
public class Text {//外部类

    public Text() {//构造器
        Inner s1 = new Inner();
        s1.a = 10;
        Inner s2 = new Inner();
        System.out.println(s2.a);
    }

    class Inner { //内部类，成员内部类
        public int a = 5;
    }

    public static void main(String[] args) {
        Text t = new Text();
        Inner r = t.new Inner();//5
        System.out.println(r.a);//5
    }
}
